import React from 'react';
import {HashRouter, Switch, Route, Redirect} from 'react-router-dom';
import Index from '@/views/index/Index'
import WoDe from '@/views/index/woDe/WoDe';
import Register from '@/views/index/woDe/register/register';
import JiSuBar from '@/views/index/home/jisu/bar/JiSuBar.js';
import Search from '@/views/index/home/search/Search';
import Login from '@/views/index/woDe/login/login';
import ShangPingDatelis from '@/views/index/shopCar/shangPingDatelis';
export default class App extends React.Component{
    render () {
        return (
            <HashRouter>
                <>
                <Switch>
                    <Route path="/shangPingDatelis" component={ShangPingDatelis}></Route>
                    <Route path="/woDe" component={WoDe}></Route>
                    <Route path="/register" component={Register}></Route>
                    <Route path="/jisubar" component={JiSuBar}></Route>
                    <Route path="/search" component={Search}></Route>
                    <Route path="/register" component={Register}></Route>
                    <Route path="/login" component={Login}></Route>
                    <Route path="/" component={Index}></Route>
                    <Redirect to="/home"></Redirect>
                </Switch>
                </>
            </HashRouter>
        )
    }
}
